package com.yrot.admin.service;

import com.yrot.admin.dto.RelatedStaff;
import com.yrot.admin.dto.TrainInfo;
import com.yrot.admin.entity.SysTrain;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yrot.common.result.R;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hemin
 * @since 2019-04-02
 */
public interface ISysTrainService extends IService<SysTrain> {
    R saveTrain(SysTrain sysTrain);

    /**
     * 查询专家最近7场培训的正确率
     * @param ExpertId 专家id
     * @return 正确率
     */
    R findAccuracyByExpertId(Integer ExpertId);

    R creatExamAndPeople(TrainInfo trainInfo);
}
